package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.fellingtrees.FellingTreesRankEquipData;
import com.yanqu.road.entity.activity.fellingtrees.FellingTreesUserData;
import com.yanqu.road.entity.activity.fellingtrees.config.FellingTreesElixirConfig;
import com.yanqu.road.entity.activity.fellingtrees.config.FellingTreesLevelConfig;
import com.yanqu.road.entity.activity.fellingtrees.config.FellingTreesMaterialsConfig;
import com.yanqu.road.entity.activity.fellingtrees.config.FellingTreesWeaponsConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class FellingTreesBusiness {

    public static Map<Integer, FellingTreesElixirConfig> getFellingTreesElixirConfigMap(int activityId) {
        return DaoHelper.getFellingTreesElixirConfigDaoImpl().getFellingTreesElixirConfigMap(activityId);
    }

    public static Map<Integer, FellingTreesLevelConfig> getFellingTreesLevelConfigMap(int activityId) {
        return DaoHelper.getFellingTreesLevelConfigDaoImpl().getFellingTreesLevelConfigMap(activityId);
    }

    public static Map<Integer, FellingTreesMaterialsConfig> getFellingTreesMaterialsConfigMap(int activityId) {
        return DaoHelper.getFellingTreesMaterialsConfigDaoImpl().getFellingTreesMaterialsConfigMap(activityId);
    }

    public static Map<Integer, FellingTreesWeaponsConfig> getFellingTreesWeaponsConfigMap(int activityId) {
        return DaoHelper.getFellingTreesWeaponsConfigDaoImpl().getFellingTreesWeaponsConfigMap(activityId);
    }

    // 玩家数据

    public static FellingTreesUserData getFellingTreesUserData(int activityId, long userId) {
        return DaoHelper.getFellingTreesUserDataDaoImpl().getFellingTreesUserData(activityId, userId);
    }

    public static boolean updateFellingTreesUserData(FellingTreesUserData data) {
        return DaoHelper.getFellingTreesUserDataDaoImpl().update(data);
    }

    public static boolean addFellingTreesUserData(FellingTreesUserData data) {
        return DaoHelper.getFellingTreesUserDataDaoImpl().add(data);
    }

    // 玩家装备

    public static Map<Long, FellingTreesRankEquipData> getFellingTreesRankEquipDataMap(int activityId) {
        return DaoHelper.getFellingTreesRankEquipDataDaoImpl().getFellingTreesRankEquipDataMap(activityId);
    }

    public static boolean updateFellingTreesRankEquipData(FellingTreesRankEquipData data) {
        return DaoHelper.getFellingTreesRankEquipDataDaoImpl().update(data);
    }

    public static boolean addFellingTreesRankEquipData(FellingTreesRankEquipData data) {
        return DaoHelper.getFellingTreesRankEquipDataDaoImpl().add(data);
    }

}
